package com.gumanx;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

public class ItemArmorStellerium extends ItemArmor implements
		IArmorTextureProvider {

	private Object iconIndex;

	public ItemArmorStellerium(int par1,
			EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
		super(par1, par2EnumArmorMaterial, par3, par4);
	}

	/**
	 * Sets what the armor looks like when worn
	 */
	public String getArmorTextureFile(ItemStack itemstack) {
		if (itemstack.itemID == _GumanxModBase.ItemArmorHelmetStellerium.itemID
				|| itemstack.itemID == _GumanxModBase.ItemArmorChestplateStellerium.itemID
				|| itemstack.itemID == _GumanxModBase.ItemArmorBootsStellerium.itemID) {
			return "/mods/gumanx/textures/items/armorStellerium_1.png";
		}
		if (itemstack.itemID == _GumanxModBase.ItemArmorLeggingsStellerium.itemID) {
			return "/mods/gumanx/textures/items/armorStellerium_2.png";
		}

		else
			return null;
	}

	/**
	 * Registers the icons of the various pieces of armor
	 */
	public void registerIcons(IconRegister iconReg) {
		if (this.itemID == _GumanxModBase.ItemArmorBootsStellerium.itemID) {
			itemIcon = iconReg.registerIcon("gumanx:bootsStellerium");
		}
		
		else if(this.itemID == _GumanxModBase.ItemArmorChestplateStellerium.itemID)
		{
			itemIcon = iconReg.registerIcon("gumanx:chestplateStellerium");
		}
		
		else if(this.itemID == _GumanxModBase.ItemArmorHelmetStellerium.itemID)
		{
			itemIcon = iconReg.registerIcon("gumanx:helmetStellerium");
		}
		
		else if(this.itemID == _GumanxModBase.ItemArmorLeggingsStellerium.itemID)
		{
			itemIcon = iconReg.registerIcon("gumanx:leggingsStellerium");
		}
	}
}
